题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=2897分析:n % (p + q) == 0 先手赢。 策略为:
A 拿 q , B 拿任意 k, A拿 p+q - k, 最后剩 p, B拿。 n % (p + q) + left left <= p....
分类:
其他好文 时间:
2014-05-09 04:17:33
阅读次数:
270
1、Ubuntu12.04 安装nginx+php+mysql
(lnmp)的web服务器环境http://blog.db89.org/ubuntu12-04-install-nginx-php-mysql-lnmp-of-the-web-server-environment/2、Ubuntu
12...
分类:
数据库 时间:
2014-05-09 03:57:10
阅读次数:
308
转载地址:http://www.2cto.com/database/201212/173869.html一、正则表达式介绍 www.2cto.com
正则表达式是用来匹配文本的特殊的串(字符集合)。二、使用MySQL正则表达式1、MySQL仅仅支持多数正则表达式实现的一个很小的子集。2、LIKE匹配...
分类:
数据库 时间:
2014-05-09 03:45:31
阅读次数:
456
先看一段代码(PHP例子)1、表单代码(form.php):[php] view
plaincopy 2、action代码(formAction.php):[php] view plaincopy
分类:
其他好文 时间:
2014-05-09 03:42:09
阅读次数:
288
转载地址:http://www.2cto.com/database/201212/173868.html1、登录数据库 www.2cto.com
命令:mysql -u username –p (mysql -h主机地址 -u用户名 -p用户密码) 描述:输入命令回车,即可输入密码了。密码验...
分类:
数据库 时间:
2014-05-09 03:29:32
阅读次数:
489
转载地址:http://www.2cto.com/database/201212/175541.htmlMySQL的字符集支持(Character Set
Support)有两个方面:字符集(Character set)和排序方式(Collation)。 www.2cto.com 对于字符集...
分类:
数据库 时间:
2014-05-09 03:06:04
阅读次数:
365
com.microsoft.sqlserver.jdbc.SQLServerDriver--> com.mysql.jdbc.Driver
jdbc:sqlserver://192.168.2.186:1433;DatabaseName=test2...
分类:
数据库 时间:
2014-05-09 03:02:38
阅读次数:
322
使用php写的,方便点 $LOG"; `$cmd`; _debug($cmd); //
再使用goaccess生成网页 $cmd = "/usr/local/bin/goaccess -f $LOG -a >
/yfdata/mobile/$HTML"; `$cmd`;...
分类:
数据库 时间:
2014-05-09 02:56:20
阅读次数:
371
转载地址:http://www.2cto.com/database/201212/175536.html一、整型 www.2cto.com
整数类型是数据库中最基本的数据类型。标准SQL中支持INTEGER和SMALLINT这两种整数类型。MySQL数据库除了支持这两种类型外,还扩展支持了T...
分类:
数据库 时间:
2014-05-09 00:19:56
阅读次数:
516